package Domin;

public class Salary {
    private int salaryId;
    private int empId;
    private double baseSalary;
    private double bonus;
    private double total;
    private String month; // "2025-11"

    public Salary() {}
    public Salary(int empId, double baseSalary, double bonus, String month) {
        this.empId = empId;
        this.baseSalary = baseSalary;
        this.bonus = bonus;
        this.month = month;
        this.total = baseSalary + bonus;
    }

    // Getters & Setters
    public int getSalaryId() { return salaryId; }
    public void setSalaryId(int salaryId) { this.salaryId = salaryId; }
    public int getEmpId() { return empId; }
    public void setEmpId(int empId) { this.empId = empId; }
    public double getBaseSalary() { return baseSalary; }
    public void setBaseSalary(double baseSalary) { this.baseSalary = baseSalary; }
    public double getBonus() { return bonus; }
    public void setBonus(double bonus) { this.bonus = bonus; }
    public double getTotal() { return total; }
    public void setTotal(double total) { this.total = total; }
    public String getMonth() { return month; }
    public void setMonth(String month) { this.month = month; }
}